how to find the relationship between pieces